<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Login extends CI_Controller {

	function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		$this->load->helper('url');
		if(!isset($_COOKIE['username'])){
			$this->load->view('login');}
			else{
				echo "<script language='javascript' type='text/javascript'>";
				echo 'alert("已经登录!");';
				echo "</script>";
				redirect('?count=0','refresh');
			}
	}

}
?>